<!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'riskWarningFlowStage.label', default: 'RiskWarningFlowStage')}" />
        <title>工作流信息编辑</title>
    </head>
    <body>
      <div class="small-header">
          <div class="hpanel">
              <div class="panel-body">
                  <div id="hbreadcrumb" class="pull-right">
                      <ol class="hbreadcrumb breadcrumb">
                          <li>CINDATA PLS</li>
                          <li>
                              工作流
                          </li>
                          <li class="active">
                              <span>工作流信息编辑</span>
                          </li>
                      </ol>
                  </div>
                  <h2 class="font-light m-b-xs">
                      工作流信息编辑
                  </h2>
              </div>
          </div>
      </div>
      <div class="content animate-panel">
          <div class="row">
              <div class="hpanel hblue">
                  <div class="panel-heading">
                      工作流信息编辑
                  </div>
                  <div class="panel-body">
                  <g:form resource="${this.riskWarningFlowStage}" method="PUT" class="form-horizontal">
                      <g:if test="${flash.message}">
                      <div class="message" role="status">${flash.message}</div>
                      </g:if>
                      <g:hasErrors bean="${this.riskWarningFlowStage}">
                      <ul class="errors" role="alert">
                          <g:eachError bean="${this.riskWarningFlowStage}" var="error">
                          <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                          </g:eachError>
                      </ul>
                      </g:hasErrors>

                  <g:textField class="form-control hidden" type="text" name="targetUri" id="targetUri" value="${params.targetUri}"/>

                  <div class="hr-line-dashed"></div>
                  <div class="form-group">
                      <label class="col-md-3 control-label">阶段</label>
                      <div class="col-md-3">
                          <g:select class="form-control" name="stage.id" required="required" id="stage"
                                      value="${this.riskWarningFlowStage?.stage?.id}"
                                      from="${com.cindata.dictionary.RiskWarningStage.list()}"
                                      optionKey="id" optionValue="name"></g:select>
                      </div>
                  </div>

                  <div class="hr-line-dashed"></div>
                  <div class="form-group">
                      <label class="col-md-3 control-label">执行次序</label>
                      <div class="col-md-3 checkbox-inline">
                          <g:textField name="executionSequence" value="${this.riskWarningFlowStage?.executionSequence}" class="form-control" />
                      </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="form-group ">
                      <label class="col-md-3 control-label">是否回退</label>
                      <div class="col-md-3 checkbox-inline">
                          <g:radioGroup class="checkbox-inline" name="canReject" value="${this.riskWarningFlowStage?.canReject}" labels="['true','false']" values="[true,false]">
                              ${it.radio} ${it.label}
                          </g:radioGroup>
                      </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="form-group">
                      <label class="col-md-3 control-label">布局</label>
                      <div class="col-md-3 checkbox-inline">
                        <g:select class="form-control" name="layout.id" value="${this.riskWarningFlowStage?.layout?.id}" required="required" id="layout" from="${com.cindata.Layout.findAllByActive(true)}" optionKey="id" optionValue="description" noSelection="${['null':'请选择']}"></g:select>

                      </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  <div class="form-group">
                      <label class="col-md-3 control-label">备注</label>
                      <div class="col-md-3 checkbox-inline">
                        <g:textField name="comments" value="${this.riskWarningFlowStage?.comments}" class="form-control" />
                      </div>
                  </div>

                  <div class="hr-line-dashed"></div>
                  <div class="form-group">
                      <div class="col-md-3 col-md-offset-3">
                          <g:submitButton class="btn btn-info" name="update" value="保存"/>
                      </div>
                  </div>
              </g:form>
          </div>
      </div>
  </div>
</div>
    </body>
</html>
